<template>
  <view class="info-box">
    <view class="info-header">
      <text class="info-icon">ℹ️</text>
      <text class="info-title">{{ title }}</text>
    </view>
    <view class="info-content">
      <slot></slot>
    </view>
  </view>
</template>

<script>
export default {
  name: 'InfoBox',
  props: {
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped>
.info-box {
  background-color: #f0f8ff;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.info-icon {
  margin-right: 8px;
  font-size: 20px;
}

.info-title {
  font-size: 16px;
  font-weight: bold;
}

.info-content {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
</style> 